package com.scvtc.domain.entity.research;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 科研著作信息(ResearchWork)类
 *
 * @author yiFei
 * @since 2022-06-02 16:17:10
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("科研著作信息")
@TableName("research_work")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResearchWork implements Serializable {

    private static final long serialVersionUID = 132554288142220345L;

    @TableId
    private Integer id;

    /**
     * 教师外键
     */
    @ApiModelProperty(value = "教师外键")
    private Integer teacherId;

    /**
     * 著作年度
     */
    @ApiModelProperty(value = "著作年度")
    private String researchWorkYear;

    /**
     * 著作成果名称
     */
    @ApiModelProperty(value = "著作成果名称")
    private String researchWorkName;

    /**
     * 著作所属学科
     */
    @ApiModelProperty(value = "著作所属学科")
    private String researchWorkSubject;

    /**
     * 著作出版社
     */
    @ApiModelProperty(value = "著作出版社")
    private String researchWorkPublisher;

    /**
     * 著作ISBN
     */
    @ApiModelProperty(value = "著作ISBN")
    private String researchWorkIsbn;

    /**
     * 著作编著形式
     */
    @ApiModelProperty(value = "著作编著形式")
    private String researchWorkWriteSituation;

    /**
     * 著作类别
     */
    @ApiModelProperty(value = "著作类别")
    private Object researchWorkCategory;

    /**
     * 著作出版时间
     */
    @ApiModelProperty(value = "著作出版时间")
    private String researchWorkPublishDate;

    /**
     * 著作按序填写编著人员
     */
    @ApiModelProperty(value = "著作按序填写编著人员")
    private String researchWorkAuthorRank;

    /**
     * 著作总字数
     */
    @ApiModelProperty(value = "著作总字数")
    private Long researchWorkTotalWords;

    /**
     * 著作本院参编字数
     */
    @ApiModelProperty(value = "著作本院参编字数")
    private Long researchWorkOurWords;

    /**
     * 著作（校内）分工撰写字数（万字）
     */
    @ApiModelProperty(value = "著作（校内）分工撰写字数（万字）")
    private String researchWorkDivisionWords;

    /**
     * 著作折合科研分
     */
    @ApiModelProperty(value = "著作折合科研分")
    private String researchWorkScore;

    /**
     * 著作核查分
     */
    @ApiModelProperty(value = "著作核查分")
    private String researchWorkCheckScore;

    /**
     * 著作备注
     */
    @ApiModelProperty(value = "著作备注")
    private String researchWorkDescription;

    /**
     * 数据状态（0正常 1停用）
     */
    @ApiModelProperty(value = "数据状态（0正常 1停用）")
    private String status;

    /**
     * 创建人的用户id
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人 ID")
    private Long createBy;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人 ID")
    private Long updateBy;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 删除标志（0代表未删除，1代表已删除）
     */
    @ApiModelProperty(value = "删除标志（0代表未删除，1代表已删除）")
    private String delFlag;

    /**
     * 教师姓名
     */
    @ApiModelProperty(value = "教师姓名", hidden = true)
    @TableField(exist = false)
    private String teacherName;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", hidden = true)
    @TableField(exist = false)
    private String teacherGender;

    /**
     * 部门
     */
    @ApiModelProperty(value = "部门", hidden = true)
    @TableField(exist = false)
    private String teacherDepartment;

    /**
     * 职称
     */
    @ApiModelProperty(value = "职称", hidden = true)
    @TableField(exist = false)
    private String teacherRank;

    /**
     * 学位
     */
    @ApiModelProperty(value = "学位", hidden = true)
    @TableField(exist = false)
    private String teacherDegree;

    /**
     * 教工号
     */
    @ApiModelProperty(value = "教工号", hidden = true)
    @TableField(exist = false)
    private String teacherCollegeId;

}
